import play.*;
import play.libs.F.Promise;
import play.mvc.Http.RequestHeader;
import play.mvc.SimpleResult;

import static play.mvc.Results.*;

public class Global extends GlobalSettings {
	 @Override
	 public void onStart(Application app) {
		 System.out.println("Application has started.............");
		 
		 GlobalSettings s = new GlobalSettings();
	 }  
	  
	 @Override
	 public void onStop(Application app) {
		 System.out.println("Application shutdown..........");
	 }  
	 
	 @Override
	  public Promise<SimpleResult> onHandlerNotFound(RequestHeader request) {
		 return Promise.<SimpleResult>pure(notFound(
            views.html.notFoundPage.render(request.uri())
        ));
	  }  
}
